package pl.allegro.search.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import pl.allegro.search.extension.Activator;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
			store.setDefault(PreferenceConstants.P_ALLEGRO_USER_NAME, "Your user name goes here");
			store.setDefault(PreferenceConstants.P_ALLEGRO_USER_PASSWORD, null);
	
			store.setDefault(PreferenceConstants.P_ALLEGRO_WEBAPI_COUNTRY, null);
			store.setDefault(PreferenceConstants.P_ALLEGRO_WEBAPI_VERSION_KEY, null);
			store.setDefault(PreferenceConstants.P_ALLEGRO_WEBAPI_KEY, null);
	}

}
